{template "","header"}
<!--main-->
<div id="main">
	<div id="page">
		<div class="left">
			{if isset($parent_brand)}
				{if $parent_brand[userid] > 0 && $parent_brand[pcompanyname]!=''}
				<div class="business">
					<table cellpadding="0" cellspacing="0">
						<tr>
							<td rowspan="2" width="80" align="left">
								<div style="width:48px;height:48px;"><img src="{get_memberavatar($parent_brand[userid], '', 45)}" onerror="this.src='{IMG_PATH}108wo/touxiang.gif'"></div>
							</td>
							<td width="13%" align="right">供 应 商：</td>
							<td><span class="font14 b">{$parent_brand[pcompanyname]}</span></td>
							<td width="13%" align="right">联 系 人：</td>
							<td>{$parent_brand[prealname]}<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$parent_brand[pqq]}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$parent_brand[pqq]}:46" alt="点击这里给我发消息" title="点击这里给我发消息"></a></td>
						</tr>
						<tr>
							<td align="right">销售地址：</td>
							<td>{$parent_brand[paddress]}</td>
							<td align="right">联系电话：</td>
							<td>{$parent_brand[ptel]}</td>
						</tr>
					</table>					
				</div>
				{/if}
					{if $brandClasses}
					<div class="subCate">
					{php $i=1}
					{loop $brandClasses $key $r}
						<a href="{$CAT[url]}?bid={$r[id]}" {if $r[id]==$_GET[bid]}class="current"{/if}>{$r[name]}</a>{if $i < count($brandClasses)}　|　{/if}
						{php $i++}
					{/loop}
					</div>
					{/if}
					{/pc}
			{/if}
			<div class="picList">
				<div class="listTop">
					<form action="" method="GET" id="productListForm">
					<ul class="l">
						<span class="green b">{$catname}{if $brand[name]} > {$brand[name]}{/if}</span> 
						总有<span class="green b">{$content_total}</span>条相关信息　
						排序：<select name="sortkey" onchange="$('#productListForm').submit();"><option value="updatetime" {if $_GET[sortkey]=="updatetime"}selected{/if}>更新时间</option><option value="ordernum" {if $_GET[sortkey]=="ordernum"}selected{/if}>加入清单次数</option><option value="viewnum" {if $_GET[sortkey]=="viewnum"}selected{/if}>点击次数</option><option value="goodnum" {if $_GET[sortkey]=="goodnum"}selected{/if}>好评次数</option></select>
						每页显示<select name="num" onchange="$('#productListForm').submit();"><option value=20 {if $_GET[num] == 20}selected{/if}>20</option><option value=50  {if $_GET[num] == 50}selected{/if}>50</option><option value=100  {if $_GET[num] == 100}selected{/if}>100</option></select>条
					</ul>
					{if $brand}<input type="hidden" name="bid" value="{$brand[id]}" />{/if}
					</form>
					<ul class="r">
						{if $memberinfo[doupload] == 0}<a href="javascript:void(0);" onclick="location.reload();">Reset</a>{else}
						<a href="{APP_PATH}index.php?m=content&c=product&a=batchupload" class="batchupload" >上传产品</a>
						{/if}
					</ul> 
					<ul class="clearit"></ul>
				</div>
				<div class="listCo">
					<ul>
					{loop $product_data $r}
						<li>
							<a href="{$r[thumb]}#{$r[id]}_{$r[catid]}_{array_shift(explode(',', $r[bids]))}" rev="{thumb($r[thumb], 320, 200)}" class="image" rel="photoGroup" title="{$r[title]}"><img src="{IMG_PATH}108wo/pic_mask.png" /></a>
							<p>
								<span><a href="javascript:void(0);" onclick="$(this).parent().parent().prev().click();">{$r[title]}</a></span>
								<a href="javascript:void(0);" onclick="dianping(this, 'good', {$r[id]}, 13)">好</a>[<font class="good">{$r[goodnum]}</font>]<a href="javascript:void(0);" onclick="dianping(this, 'bad', {$r[id]}, 13)">差</a>[<font class="bad">{$r[badnum]}</font>]
							</p>
							<a href="javascript:void(0);" onclick="addOrder({$r[id]})" class="btn"></a>
						</li>
					{/loop}
					</ul>
				</div>
				<div class="clearit"></div>
				{if $product_pages}
				<div class="pageList">
					{$product_pages}
				</div>
				{/if}
				{/pc}
			</div>	
		</div>
		{template "content","side_right"}
		<div class="clearit"></div>
	</div>
</div>
{template "","footer"}